﻿using WeDonekRpc.Helper.Validate;

namespace Shop.StoreGatewayModular.Model.LConfig
{
    public class CalculateLogisticsDto
    {
        /// <summary>
        /// 摸版ID
        /// </summary>
        [NumValidate("shop.logistics.temlate.id.error", 1)]
        public long TemplateId { get; set; }
        /// <summary>
        /// 邮寄地址
        /// </summary>
        [AreaValidate("public.area.id.error")]
        public int AreaId { get; set; }

        /// <summary>
        /// 总价
        /// </summary>
        [NumValidate("shop.logistics.total.price.error", 0)]
        public decimal TotalPrice { get; set; }

        /// <summary>
        /// 重量 
        ///</summary>
        public decimal? Weight { get; set; }

        /// <summary>
        /// 体积 
        ///</summary>
        public decimal? Volume { get; set; }
    }
}
